{% extends 'base.html' %}
{% block content %}
    <div style="color: white">
        <a href="{{url_for('imdb.index')}}">&larr;返回</a>
        <h2>{{user.username|smiling}}</h2>
        {% if user.bio %}
            <i>{{user.bio}}</i>
        {% else %}
            <i>用户未提供任何经历信息</i>
        {% endif%}
        <h5>{{user.username}}'s watchlist({{movies|length}}):</h5>
        <ul>
            {% for movie in movies %}
                <li>{{movie.name}} - {{movie.year}}</li>
            {% endfor %}
        </ul>

        {# 过滤器的使用  #}
        {% filter upper%}
            {{user.username}}
        {% endfilter %}

        <div>{{user.username|upper}}</div>

        {# 自定义全局函数演示  #}
        <div>{{copyright()}}  <i>{{author.name}} / {{author.email}}</i>  </div>
    </div>
{% endblock %}